#!/usr/bin/env node

// @ts-nocheck
const { workerRun } = require('./lib/workerRun');

const { _: args, ...cmdOpts } = require('minimist')(process.argv.slice(2));

process.on('unhandledRejection', (err) => {
  if (err.stderr) {
    return console.log(err.stderr);
  }
  throw err;
});

workerRun(require.resolve('./mod/tosrc.js'), { globPattern: 'src/**/*.{ts,tsx,js,scss}' });
